package org.grapes.wine.api.server.model.dao;

import java.util.Arrays;
import java.util.List;

import org.grapes.wine.api.server.model.DAOName;
import org.grapes.wine.api.server.model.IDAO;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;

@Indexed
public class HotelInfoDAO implements IDAO {
	@DocumentId
	private String id;
	private int version;
	@Field(index = Index.TOKENIZED, store = Store.NO)
	private String hotelName;
	@Field(index = Index.TOKENIZED, store = Store.NO)
	private String introduction;

	public HotelInfoDAO() {
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public int getVersion() {
		return version;
	}

	public String getHotelName() {
		return hotelName;
	}

	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public DAOName getDAOName() {
		return DAOName.HotelInfo;
	}

	public String[] paramName() {
		return new String[] { "hotelName", "introduction" };
	}
}
